<template>
  <header class="aui-navBar aui-navBar-fixed">
    <a
      href="javascript:;"
      class="aui-navBar-item"
      @click="$router.push('/')"
    >
      <i class="icon icon-return"></i>
    </a>
    <div class="aui-center">
      <span class="aui-center-title"></span>
    </div>
    <a
      href="javascript:;"
      class="aui-navBar-item"
    >
      <i class="icon icon-user"></i>
    </a>
  </header>
  <section class="aui-scrollView">
    <div class="aui-chang-box"></div>
    <div class="aui-chang-list">
      <div class="aui-user-img">
        <img
          :src="avatarUrl"
          alt=""
        >
      </div>
      <div class="aui-user-text">
        <h1>{{nickname}}</h1>
        <span v-if="$store.state.user.userDetail.profile.vipType==0"><i class="icon icon-vip"></i>您还未开通VIP会员</span>
        <button>开通会员</button>
      </div>
      <div class="aui-jf">积分50</div>
    </div>
    <div class="aui-palace aui-palace-one">
      <a
        href="javascript:;"
        class="aui-palace-grid"
      >
        <div class="aui-palace-grid-icon">
          <img
            src="@/assets/img/nav-001.png"
            alt=""
          >
        </div>
        <div class="aui-palace-grid-text">
          <h2>客户关系</h2>
        </div>
      </a>
      <a
        href="javascript:;"
        class="aui-palace-grid"
      >
        <div class="aui-palace-grid-icon">
          <img
            src="@/assets/img/nav-002.png"
            alt=""
          >
        </div>
        <div class="aui-palace-grid-text">
          <h2>客户管理</h2>
        </div>
      </a>
      <a
        href="javascript:;"
        class="aui-palace-grid"
      >
        <div class="aui-palace-grid-icon">
          <img
            src="@/assets/img/nav-003.png"
            alt=""
          >
        </div>
        <div class="aui-palace-grid-text">
          <h2>任务监控</h2>
        </div>
      </a>
      <a
        href="javascript:;"
        class="aui-palace-grid"
      >
        <div class="aui-palace-grid-icon">
          <img
            src="@/assets/img/nav-004.png"
            alt=""
          >
        </div>
        <div class="aui-palace-grid-text">
          <h2>数据统计</h2>
        </div>
      </a>
    </div>
    <div class="divHeight"></div>
    <div class="aui-list-item">
      <a
        href="javascript:;"
        class="aui-flex b-line"
      >
        <div class="aui-cou-img">
          <img
            src="@/assets/img/icon-001.png"
            alt=""
          >
        </div>
        <div class="aui-flex-box">
          <p>用户协议</p>
        </div>
      </a>
      <a
        href="javascript:;"
        class="aui-flex b-line"
      >
        <div class="aui-cou-img">
          <img
            src="@/assets/img/icon-002.png"
            alt=""
          >
        </div>
        <div class="aui-flex-box">
          <p>常见问题</p>
        </div>
      </a>
      <a
        href="javascript:;"
        class="aui-flex b-line"
      >
        <div class="aui-cou-img">
          <img
            src="@/assets/img/icon-003.png"
            alt=""
          >
        </div>
        <div class="aui-flex-box">
          <p>联系客服</p>
        </div>
      </a>
      <div class="divHeight b-line"></div>
      <a
        href="javascript:;"
        class="aui-flex b-line"
      >
        <div class="aui-cou-img">
          <img
            src="@/assets/img/icon-004.png"
            alt=""
          >
        </div>
        <div class="aui-flex-box">
          <p>关于我们</p>
        </div>
      </a>
    </div>
    <div class="divHeight b-line"></div>

  </section>
</template>

<script>
  export default {
    computed:{
      avatarUrl(){
        return this.$store.state.user.userDetail.profile.avatarUrl;
      },
      nickname(){
        return this.$store.state.user.userDetail.profile.nickname;
      }
    }
  }
</script>

<style lang="less" scoped>
.divHeight {
  width: 100%;
  height: 10px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.r-line {
  position: relative;
}

.r-line:after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  height: 100%;
  border-right: 1px solid #d9d9d9;
  -webkit-transform: scaleX(0.5);
  transform: scaleX(0.5);
  -webkit-transform-origin: 100% 0;
  transform-origin: 100% 0;
}

.b-line {
  position: relative;
}

.b-line:after {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #e2e2e2;
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
  -webkit-transform-origin: 0 100%;
  transform-origin: 0 100%;
}

.aui-arrow {
  position: relative;
  padding-right: 0.2rem;
}

.aui-arrow span {
  font-size: 0.2rem;
  color: #9b9b9b;
}

.aui-arrow:after {
  content: " ";
  display: inline-block;
  height: 6px;
  width: 6px;
  border-width: 2px 2px 0 0;
  border-color: #848484;
  border-style: solid;
  -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  position: relative;
  top: -2px;
  position: absolute;
  top: 50%;
  margin-top: -4px;
  right: 2px;
  border-radius: 1px;
}

.aui-flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 15px;
  position: relative;
}

.aui-flex-box {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #333;
}

/* 蹇呰甯冨眬鏍峰紡css */

.aui-flexView {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.aui-scrollView {
  width: 100%;
  height: 100%;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.aui-navBar {
  height: 44px;
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  z-index: 102;
  background: #97fac4;
}

.aui-navBar-item {
  height: 44px;
  min-width: 25%;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 25%;
  -ms-flex: 0 0 25%;
  flex: 0 0 25%;
  padding: 0 0.3rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  color: #808080;
  position: relative;
}

.aui-navBar-item:first-child {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  -ms-flex-order: 1;
  order: 1;
  margin-right: -25%;
  font-size: 0.3rem;
  font-weight: bold;
}

.aui-navBar-item:last-child {
  -webkit-box-ordinal-group: 4;
  -webkit-order: 3;
  -ms-flex-order: 3;
  order: 3;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.aui-center {
  -webkit-box-ordinal-group: 3;
  -webkit-order: 2;
  -ms-flex-order: 2;
  order: 2;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  height: 44px;
  width: 50%;
  margin-left: 25%;
}

.aui-center-title {
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  font-size: 0.3rem;
  color: #333;
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  border: none;
  float: left;
  background-size: 20px;
  background-repeat: no-repeat;
}

.icon-return {
  background-image: url("");
}

.icon-user {
  background-image: url("");
}

.m-slider {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.slider-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-transform: translate3d(0px, 0px, 0px);
  transform: translate3d(0px, 0px, 0px);
  position: relative;
  z-index: 1;
  -webkit-transition-property: -webkit-transform;
  transition-property: -webkit-transform;
  transition-property: transform;
  transition-property: transform, -webkit-transform;
}

.slider-item {
  width: 100%;
  height: 100%;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background: #f6f6f6;
}

.slider-item img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.slider-pagination {
  text-align: right;
  position: absolute;
  width: 100%;
  z-index: 2;
  right: 0;
  bottom: 10px;
  pointer-events: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  -ms-flex-align: end;
  align-items: flex-end;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.slider-pagination > .slider-pagination-item {
  margin: 0 0.08rem;
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 100%;
  background-color: rgba(255, 255, 255, 0.4);
}

.slider-pagination > .slider-pagination-item.slider-pagination-item-active {
  background-color: #fff;
  border-radius: 100%;
}

.tab-nav {
  height: 40px;
  line-height: 40px;
  display: block;
  position: relative;
  background: #fff;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.tab-nav-item {
  height: 40px;
  line-height: 40px;
  position: relative;
  text-align: center;
  color: #585858;
  font-size: 0.3rem;
  display: block;
  float: left;
  width: 20%;
}

.tab-nav-item.tab-active {
  /* background-color: #51bd03; */
}

.tab-nav-item.tab-active a {
  color: #ff1767;
  font-size: 0.2rem;
}

.tab-nav-item a {
  display: inherit;
  font-size: 0.2rem;
  color: #666;
}

.tab-panel {
  position: relative;
  overflow: hidden;
}

.tab-panel .tab-panel-item {
  width: 100%;
  position: absolute;
  top: 0;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
}

.tab-panel .tab-panel-item.tab-active ~ .tab-panel-item {
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}

.tab-panel .tab-panel-item.tab-active {
  position: relative;
  -webkit-transition: -webkit-transform 0.15s;
  transition: -webkit-transform 0.15s;
  transition: transform 0.15s;
  transition: transform 0.15s, -webkit-transform 0.15s;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.tab-nav-item.tab-active:before {
  content: "";
  width: 70%;
  height: 3px;
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -35%;
  z-index: 4;
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#ff6143),
    to(#ff1767)
  );
  background-image: -webkit-linear-gradient(left, #ff6143, #ff1767);
  background-image: -moz-linear-gradient(left, #ff6143, #ff1767);
  background-image: linear-gradient(to right, #ff6143, #ff1767);
  background-color: #ff6143;
}

.aui-palace {
  padding: 0.1rem 0;
  position: relative;
  overflow: hidden;
}

.aui-palace-grid {
  position: relative;
  float: left;
  padding: 1px;
  width: 20%;
  box-sizing: border-box;
  margin: 5px 0;
}

.aui-palace-grid-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.aui-palace-grid-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.aui-palace-grid-text {
  display: block;
  text-align: center;
  color: #333;
  font-size: 0.2rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding-top: 0.06rem;
}

.aui-palace-grid-text h2 {
  font-size: 0.08rem;
  font-weight: normal;
  color: #666666;
}

.m-actionsheet {
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #efeff4;
  -webkit-transform: translate(0, 100%);
  transform: translate(0, 100%);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.mask-black {
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  z-index: 500;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 998;
}

.actionsheet-action {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.09rem;
  color: #555;
  height: 0.3rem;
  line-height: 0.3rem;
  background-color: #fff;
}

.m-actionsheet {
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10005;
  background-color: #ffffff;
  -webkit-transform: translate(0, 100%);
  transform: translate(0, 100%);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.actionsheet-toggle {
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

.actionsheet-item {
  display: block;
  position: relative;
  font-size: 0.28rem;
  color: #555;
  height: 0.6rem;
  line-height: 0.6rem;
  background-color: #fff;
}

.actionsheet-item {
  display: block;
  position: relative;
  font-size: 0.28rem;
  color: #555;
  height: 0.6rem;
  line-height: 0.6rem;
  background-color: #fff;
}

.aui-coll-cancel a {
  height: 45px;
  line-height: 45px;
  font-size: 12px;
  background: #f9f9f9;
  display: block;
  text-align: center;
  width: 100%;
}

.aui-coll-share-img {
  width: 38px;
  height: 38px;
  margin: 0 auto;
}

.aui-coll-share-img img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.aui-coll-share-box {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.aui-coll-cancel a {
  height: 45px;
  line-height: 45px;
  font-size: 12px;
  background: #f9f9f9;
  display: block;
  text-align: center;
  width: 100%;
}

.aui-coll-share-item {
  position: relative;
  float: left;
  padding: 8px 10px;
  width: 33.333%;
  box-sizing: border-box;
  font-size: 12px;
  height: 85px;
}

.aui-rule {
  position: absolute;
  right: 0;
  top: 0.3rem;
  background: #54ca9a;
  border-radius: 50px 0 0 50px;
  font-size: 0.28rem;
  padding: 0.08rem 0.2rem;
  color: #fff;
}

.aui-chang-box {
  width: 100%;
  position: relative;
  background-color: #97fac4;
  background: -webkit-linear-gradient(#97fac4, #88efab); /* Safari 5.1 - 6.0 */
  background: -o-linear-gradient(#97fac4, #88efab); /* Opera 11.1 - 12.0 */
  background: -moz-linear-gradient(#97fac4, #88efab); /* Firefox 3.6 - 15 */
  background: linear-gradient(#97fac4, #88efab); /* 鏍囧噯鐨勮娉� */
  height: 2.6rem;
}

.aui-chang-list {
  width: 92%;
  margin: -2rem auto;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 3px 15px #e7e7e7;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

.aui-chang-list:after {
  content: "";
  position: absolute;
  border-radius: 5px;
  z-index: -1px;
  top: 0;
  left: 0;
  width: 120px;
  height: 180px;
  background-size: 120px;
  background-repeat: no-repeat;
  background-image: url("");
}

.aui-user-img {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 50%;
  margin-left: -25px;
  top: -0.4rem;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 3px 9px #e7e7e7;
  img {
    width: 100%;
    height: 100%;
  }
}

.icon-vip {
  background-image: url("");
}

.aui-user-text {
  padding: 1rem 0 0;
  text-align: center;
  position: relative;
  z-index: 3;
}

.aui-user-text span {
  width: 42%;
  margin: 0 auto 0.26rem;
  display: block;
  font-size: 0.3rem;
}

.aui-user-text h1 {
  color: #333;
  font-size: 0.33rem;
  margin-bottom: 0.25rem;
}

.aui-user-text span i {
  margin-top: -2px;
}

.aui-user-text button {
  background: none;
  border: 1px solid #51e091;
  font-size: 0.3rem;
  font-weight: 400;
  color: #51e091;
  border-radius: 22px;
  padding: 0.03rem 0.16rem;
}

.aui-chang-list .aui-jf {
  background: #ffb710;
  color: #fff;
  font-size: 0.28rem;
  font-weight: normal;
  border-radius: 22px;
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  padding: 0.04rem 0.2rem;
  box-shadow: 0 3px 9px #fbe4b0;
}

.aui-palace-one {
  padding-top: 2.3rem;
  padding-bottom: 0.3rem;
}

.aui-palace-one .aui-palace-grid-icon {
  height: auto;
  width: 50px;
}

.aui-palace-one .aui-palace-grid {
  width: 25%;
}

.aui-cou-img {
  width: 20px;
  height: 20px;
  margin-right: 0.16rem;
}

.aui-cou-img img {
  width: 20px;
  height: 20px;
  display: block;
  border: none;
}
</style>